<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="superviseMenu" />
<meta name="nav" content="2" />
<meta name="acc" content="0" />
<title>人事管理</title>
<%@ include file="/common/extjs.jsp"%>
<script type="text/javascript">
	$(document).ready(
			function() {

				$("#dep1").hide();
				
				$("#inputForm").validate({
					event : "blur",
					isTip : true
				});

				var date = new Date();
				$.get(
						"${ctx}/business/history/history!info.action?key=${id}&time="
								+ date, function(data) {
							$("#frame").html(data);
						});
			});
	
	function close() {
		$.window.closeAll();
	}

	function fucc() {
		var outcome = $("#outcome").val();
		if (outcome == "结束") {
			$("#key").attr("disabled", true);
			$("#dep1").hide();
		} else {
			$("#key").attr("disabled", false);
			$("#dep1").show();
		}
	}
</script>
</head>
<body>
	<form action="${ctx}/human/leave!submit.action" method="post"
		id="inputForm" class="yform">
		<div id="caption">
			<h6>审核记录</h6>
		</div>
		<div id="frame"></div>
		<input type="hidden" id="id" name="id" value="${id }"> <input
			type="hidden" name="taskid" id="taskid"
			value="${(empty taskid)?taskId : taskid}"> <input
			type="hidden" name="taskId" id="taskId"
			value="${(empty taskid)?taskId : taskid}"> <input
			type="hidden" name="key" id="key" value="leadername"
			disabled="disabled">
		<jsp:include page="leave_main.jsp"></jsp:include>
		<div id="caption">
			<h6>部门审核意见</h6>
		</div>
		<div>
			<table class="noborder">
				<tr class="type-text">
					<td width="80">是否需要分管领导审核</td>
					<td><select name="outcome" id="outcome" onchange="fucc();">
							<option value="结束">否</option>
							<option value="分管领导审核">是</option>
					</select></td>
				</tr>
				<tr class="type-text" id="dep1">
					<td width="80">分管领导</td>
					<td><pt:labels type="user" argument1="领导组" name="value" hasEmpty="false"></pt:labels>
					</td>
				</tr>
				<tr class="type-text">
					<td width="80">审核意见</td>
					<td><textarea name="view" id="view" rows="3"></textarea></td>
				</tr>
			</table>
		</div>
		<div class="type-button">
			<input type="submit" class="submit" value="提交"
				onclick="return isProcess('资料即将上报');" />
				<input type="button" class="reset" onclick="history.back()" value="返回">
		</div>
	</form>
</body>
</html>